﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace yule.Model.Sys
{

    /// <summary>
    /// 用户
    /// </summary>
    [DataContract]
    [Serializable]
    public class User : Base.Sys.User
    {

        /// <summary>
        /// 地区
        /// </summary>
        public yule.Model.Sys.Region Region
        {
            get
            {
                return yule.Model.Sys.Region.Select(this.RegionId);
            }
        }
        
        /// <summary>
        /// 状态
        /// </summary>
        public new yule.Enum.Sys.UserState State
        {
            get
            {
                return yule.Util.Convert.ToEnum<yule.Enum.Sys.UserState>(base.State);
            }
            set
            {
                base.State = value.GetHashCode();
            }
        }
 
    }


}